<script type="text/javascript" src="/scripts/apps/mc/ordersheet/list.js"></script>
<form id="Form_Ordersheet" name="Form_Ordersheet" action="/exec.php?action=mc_ordersheet_list" method="post" enctype="multipart/form-data">
    <table width="700" border="0" align="center" cellpadding="0" cellspacing="0" class="regBL">
    <tr>
        <td align="left" ><h2>订单管理</h2></td>
    </tr>
    </table>
    <br />
    <!--{foreach name="List_Ordersheet" item="Row" from="$Ordersheets"}-->
    <table width="700" border="0" align="center" cellpadding="2" cellspacing="0" style="border: solid #BEBEBE 1px; margin-bottom:10px;">
    <tr>
        <td width="25" height="25" align="center" valign="middle" bgcolor="#DEDEDE" style="border-bottom:solid #BEBEBE 1px;">
            <input type="checkbox" name="ID[]" id="ID" value="<!--{$Row.ID}-->" />
        </td>
        <td width="672" valign="middle" bgcolor="#DEDEDE" style="border-bottom:solid #BEBEBE 1px;">
        	订单编号：<!--{$Row.OrderNumber}-->&nbsp;&nbsp;&nbsp;下单时间：<!--{$Row.Datetime}-->&nbsp;&nbsp;&nbsp;<!--{$Row.CompanyName_Buyer}-->
		</td>
    </tr>	
    <tr>
        <td colspan="2" align="right" bgcolor="#EEEEEE">
        	<table width="695" border="0" align="right" cellpadding="0" cellspacing="0">
            <tr>
                <td width="528">
                	<!--{section name=Supply loop=$Row.Supplies}-->   
                	<table width="528" border="0" cellpadding="1" cellspacing="0">
                    <tr>
                        <td width="84" height="95" align="center" valign="middle"><a href="exec.php?action=mc_ordersheet_supply&id=<!--{$Row.Supplies[Supply].ID}-->" target="_blank"><img src="<!--{$Row.Supplies[Supply].Thumbnail}-->" width="80" height="80" /></a></td>
                        <td width="177" align="left" valign="top"><table width="165" border="0" align="center" cellpadding="0" cellspacing="0">
                            <tr>
                                <td height="2"></td>
                                </tr>
                            <tr>
                                <td><a href="exec.php?action=mc_ordersheet_supply&id=<!--{$Row.Supplies[Supply].ID}-->" target="_blank">
                                    <!--{$Row.Supplies[Supply].Title}-->
                                </a></td>
                                </tr>
                            <tr>
                                <td>分类：
                                    <!--{$Row.Supplies[Supply].ClassID}-->
                                    -
                                    <!--{$Row.Supplies[Supply].SubclassID}--></td>
                                </tr>
                        </table></td>
                        <td width="80" align="center" style="border-left:solid #BEBEBE 1px;border-right:solid #BEBEBE 1px;">&yen;
                            <!--{$Row.Supplies[Supply].Price|string_format:"%.2f"}--></td>
                        <td width="71" align="center" style="border-right:solid #BEBEBE 1px;"><!--{$Row.Supplies[Supply].Amount}-->
                            /
                            <!--{$Row.Supplies[Supply].Unit}--></td>
                        <td width="106" align="center" style="border-right:solid #BEBEBE 1px;">&yen;
                            <!--{math equation="x*y" x=$Row.Supplies[Supply].Price y=$Row.Supplies[Supply].Amount format="%.2f"}--></td>
                        </tr>
                		</table>
                        <!--{/section}-->
                </td>
                <td width="102" align="center" valign="middle" style="border-right:solid #BEBEBE 1px;">
                	<!--{if $Row.Status eq "SERVICES:000"}-->                    
                        <a href="/exec.php?action=mc_ordersheet_edit&id=<!--{$Row.ID}-->" target="_self">确认订单</a><br />
                    	<a href="/exec.php?action=mc_ordersheet_edit&id=<!--{$Row.ID}-->" target="_self">订单详情</a><br />
                        <a href="/exec.php?action=mc_logistics_info" target="_self">修改订单</a><br />
                        <a href="/exec.php?action=mc_logistics_info" target="_self">关闭订单</a>
					<!--{elseif $Row.Status eq "SERVICES:001"}-->
                        <a href="/exec.php?action=mc_ordersheet_edit&id=<!--{$Row.ID}-->" target="_self">等待付款</a><br />
                    	<a href="/exec.php?action=mc_ordersheet_edit&id=<!--{$Row.ID}-->" target="_self">订单详情</a>
					<!--{elseif $Row.Status eq "SERVICES:002"}-->
                        <a href="/exec.php?action=mc_ordersheet_edit&id=<!--{$Row.ID}-->" target="_self">确认到账</a><br />
                    	<a href="/exec.php?action=mc_ordersheet_edit&id=<!--{$Row.ID}-->" target="_self">订单详情</a>           
					<!--{elseif $Row.Status eq "SERVICES:003"}-->
                        <a href="/exec.php?action=mc_ordersheet_edit&id=<!--{$Row.ID}-->" target="_self">发货</a><br />
                    	<a href="/exec.php?action=mc_ordersheet_edit&id=<!--{$Row.ID}-->" target="_self">订单详情</a>      
					<!--{elseif $Row.Status eq "SERVICES:004"}-->
                        <a href="/exec.php?action=mc_ordersheet_edit&id=<!--{$Row.ID}-->" target="_self">等待确认收货</a><br />
                    	<a href="/exec.php?action=mc_ordersheet_edit&id=<!--{$Row.ID}-->" target="_self">订单详情</a>  
					<!--{elseif $Row.Status eq "SERVICES:005"}-->
                        <a href="/exec.php?action=mc_ordersheet_edit&id=<!--{$Row.ID}-->" target="_self">交易成功</a><br />
                    	<a href="/exec.php?action=mc_ordersheet_edit&id=<!--{$Row.ID}-->" target="_self">订单详情</a>     
					<!--{elseif $Row.Status eq "SERVICES:999"}-->
                        <a href="/exec.php?action=mc_ordersheet_edit&id=<!--{$Row.ID}-->" target="_self">交易关闭</a><br />
                    	<a href="/exec.php?action=mc_ordersheet_edit&id=<!--{$Row.ID}-->" target="_self">订单详情</a>     
					<!--{elseif $Row.Status eq "SERVICES:998"}-->
                        <a href="/exec.php?action=mc_ordersheet_edit&id=<!--{$Row.ID}-->" target="_self">交易关闭</a><br />
                    	<a href="/exec.php?action=mc_ordersheet_edit&id=<!--{$Row.ID}-->" target="_self">订单详情</a>     
					<!--{elseif $Row.Status eq "SERVICES:997"}-->
                        <a href="/exec.php?action=mc_ordersheet_edit&id=<!--{$Row.ID}-->" target="_self">交易关闭</a><br />
                    	<a href="/exec.php?action=mc_ordersheet_edit&id=<!--{$Row.ID}-->" target="_self">订单详情</a>    
					<!--{else}-->
                    	状态异常                                                                                                                                                                    
                    <!--{/if}-->
                </td>
                <td width="65" align="center" valign="middle" style="border-right:solid #BEBEBE 1px;">
                    <!--{if $Row.Status eq "SERVICES:999" or $Row.Status eq "SERVICES:998" or $Row.Status eq "SERVICES:997"}-->
	                    <a href="/exec.php?action=mc_ordersheet_list&id=<!--{$Row.ID}-->&do=delete" target="_self">删除</a>
                    <!--{else}-->
                    	<a style="color:#C0C0C0">删除</a>
					<!--{/if}-->                    
                </td>
                </tr>
        	</table>            
        </td>
    </tr>
    </table>
    <!--{/foreach}-->    
    <table width="700" border="0" align="center" cellpadding="3" cellspacing="0">
    <tr>
        <td align="center" bgcolor="#DEDEDE"><!--{$PageMenu}--></td>
    </tr>
    </table>
    <br />
</form>